package com.liuhouse.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
//封装文章详情的实体类,只把需要的字段返回给前端 详情VO转换
public class ArticleDetailVo {
    //ID
    private Long id;
    //标题
    private String title;
    //文章内容
    private String content;
    //文章摘要
    private String summary;
    //文章详情代码实现,新增了文章分类id
    private Long categoryId;
    //所属的分类名
    private String categoryName;
    //缩略图
    private String thumbnail;
    //访问量
    private Long viewCount;
    //创建时间
    private LocalDateTime createTime;
}
